<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
    <title>芳小微宣</title>
    <link rel="stylesheet" href="css/index.css">
    <script src="js/jquery.min.js"> </script>
    <script src="js/index.js"></script>
    <style>
        iframe{
            border: 0;
        }
    </style>
</head>
<body>
<div class="weui_cells_title">通知详情</div>
<div class="titleName" style="text-align: center;font-size: 5rem;margin: 10px;"></div>
<div style="text-align: center;color: #9d9d9d;font-size: 4rem;">
    <span class="date" style="padding-right: 16px;"></span>
    <span class="author"></span>
</div>
<div class="contentMain" style="font-size: 4.5rem;margin: 12px;margin-bottom: 52px;">
</div>
<div class="returnBtn">
    <a href="tzggList.html">
        <img src="images/return.png" style="width: 25px;padding-top: 4px;"><br>
        <span>返回</span>
    </a>
</div>
<script>
    $.ajax({
        type : "POST",
        url : path + "/api/weixin/getNoticeAllDetail",
        data : {
            "token" : window.localStorage.getItem("token"),
            "id" : getParam("id")
        },
        dataType : 'json',
        success : function(msg) {
            if(msg.code == 0){
                $(".titleName").html(msg.noticeEntity.theme);
                $(".date").html(msg.noticeEntity.gmtCreat ? msg.noticeEntity.gmtCreat.substr(0,10).substr(0,10) : "");
                $(".author").html(msg.noticeEntity.createBy);
                $(".contentMain").html(msg.noticeEntity.content);
            }else if(msg.code == 501){
                window.location.href = "login.html";
            }
        }
    })
</script>
</body>
</html>